package net.goutalk.glcs.module.bi.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
public class UpdateVisualCategoryDto implements Serializable {
    private static final long serialVersionUID = 1L;


    @NotNull
    @ApiModelProperty("分类id")
    private Long id;

    @ApiModelProperty("分类键值")
    @NotNull(message = "分类键值不能为空！")
    @Length(max = 20, message = "分类名称最多20个字符！")
    private String categoryKey;

    @ApiModelProperty("分类名称")
    @NotNull(message = "分类名称不能为空！")
    @Length(min = 1, max = 20, message = "分类名称最少2个字符，最多20个字符！")
    private String categoryValue;


}
